package activity.appother.app7;


import system.Utils;
import activity.appother.AppBaseWeb;
import android.content.Intent;
import android.os.Bundle;
import android.widget.Toast;

public class HrItem extends AppBaseWeb {
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		Intent intent = getIntent();
		int position = intent.getIntExtra("position", -1);
		switch (position)
		{
		case -1:
			Toast toast = Toast.makeText(HrItem.this, "error",
					Toast.LENGTH_SHORT);
			toast.setMargin(BIND_AUTO_CREATE, BIND_AUTO_CREATE);
			toast.show();
			break;
		case 0:
			super.webview.loadUrl(Utils.wholeUrlLogined("app7/today_work/today_working.jsp?"));
			break;
		case 1:
			super.webview.loadUrl(Utils.wholeUrlLogined("app7/paiban/display.jsp?"));
			break;
		case 2:
			super.webview.loadUrl(Utils.wholeUrlLogined("app7/kaoqin/kaoqin.jsp?"));
			break;
		default:
			toast = Toast.makeText(HrItem.this, "error", Toast.LENGTH_SHORT);
			toast.setMargin(BIND_AUTO_CREATE, BIND_AUTO_CREATE);
			toast.show();
			break;
		}
	}

}
